﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DDD.DomainModel
{


    public interface IRepositoryTransactionContext : IDisposable
    {

        IRepository<TEntity> GetRepository<TEntity>()

            where TEntity : IAggregateRoot;

        void BeginTransaction();

        void Commit();

        void Rollback();

    }


}
